<!DOCTYPE html>
<html  lang="zh-CN" >
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, maximum-scale=5, viewport-fit=cover">
    <title>通过Gitee部署hexo博客 | 学为我用</title>
    <meta name="description" content="hexo部署 nodejs安装 cnpm安装 安装hexo 安装主题 编写博客 通过gitee发布博客   hexo使用的  这是我的第一篇博客，目的是记录一下hexo的部署及使用方式。 hexo部署nodejs安装nodejs下载页面 win，通过安装程序点下一步安装 linux&#x2F;MaxOS 下载对应的 tar.gz包 123456789101112131415161718cd 下载目录# 解">
<meta property="og:type" content="article">
<meta property="og:title" content="通过Gitee部署hexo博客">
<meta property="og:url" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/index.html">
<meta property="og:site_name" content="学为我用">
<meta property="og:description" content="hexo部署 nodejs安装 cnpm安装 安装hexo 安装主题 编写博客 通过gitee发布博客   hexo使用的  这是我的第一篇博客，目的是记录一下hexo的部署及使用方式。 hexo部署nodejs安装nodejs下载页面 win，通过安装程序点下一步安装 linux&#x2F;MaxOS 下载对应的 tar.gz包 123456789101112131415161718cd 下载目录# 解">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/s_4.png">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/s_5.png">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/s_6.png">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/s_7.png">
<meta property="article:published_time" content="2020-07-30T08:39:05.000Z">
<meta property="article:modified_time" content="2020-09-10T03:24:43.711Z">
<meta property="article:author" content="章瑱彬">
<meta property="article:tag" content="hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/s_4.png">

    
    <link rel="icon" href="/zzbomb/images/favicon_128.ico" type="image/x-icon">

    
<link rel="stylesheet" href="/zzbomb/css/common.min.css">



    
    
    
    
        <link href="//cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/css/lightgallery.min.css" rel="stylesheet">
    
    
    
<link rel="stylesheet" href="/zzbomb/css/iconfont.min.css">

    
<meta name="generator" content="Hexo 4.2.1"></head>

    <body>
        <header class="header header-fixture">
    <div class="profile-search-wrap flex sm:block">
        
        
        <div class="profile sm:text-center md:px-1 lg:px-3 sm:pb-4 sm:pt-6">
            <a id="avatar" role="link" href="https://gitee.com/123zhangzhenbin" class="inline-block lg:w-16 lg:h-16 w-8 h-8 m-2" target="_blank" rel="noopener" rel="noreferrer" >
                <img src="/zzbomb/images/g.jpg" class="rounded-full" alt="avatar">
            </a>
            <h2 id="name" class="hidden lg:block">ZZB</h2>
            <h3 id="title" class="hidden xl:block">Java，大数据，人工智能，区块链</h3>
            
            <small id="location" class="hidden lg:block">
                <i class="iconfont icon-map-icon"></i>
                DongGuan, China
            </small>
            
        </div>
        
        
<div class="search flex-1 flex lg:inline-block sm:hidden lg:px-4 lg:mt-2 lg:mb-4 lg:w-full">
    <form id="search-form" class="my-auto flex-1 lg:border lg:border-solid lg:border-gray-200">
        <div class="input-group table bg-gray-100 lg:bg-white w-full">
            <input id="search-input" type="text" placeholder="搜索" class="inline-block w-full bg-gray-100 lg:bg-white">
            <span class="table-cell">
                <button name="search tigger button" disabled>
                    <i class="iconfont icon-search m-2"></i>
                </button>
            </span>
        </div>
    </form>
        
<script id="search-teamplate" type="text/html" data-path="/zzbomb/content.json">
    <div>
        <div class="search-header bg-gray-400">
            <input id="actual-search-input" model="keyword" ref="input" class="inline-block w-full h-10 px-2 py-1" placeholder="搜索" type="text">
        </div>
        <div class="search-result bg-gray-200">
            {{#each searchPosts}}
            <a href="/{{ path }}" class="result-item block px-2 pb-3 mb-1 pt-1 hover:bg-indigo-100">
                <i class="iconfont icon-file"></i>
                <h1 class="result-title inline font-medium text-lg">{{ title }}</h1>
                <p class="result-content text-gray-600 text-sm">{{{ text }}}</p>
            </a>
            {{/each}}
        </div>
    </div>
</script>

</div>


        <button name="menu toogle button" id="menu-toggle-btn" class="block sm:hidden p-3" role="button" aria-expanded="false">
            <i class="iconfont icon-hamburger"></i>
        </button>
    </div>
    <nav id="menu-nav" class="hidden sm:flex flex-col">
        
        
            <div class="menu-item menu-home" role="menuitem">
                <a href="/zzbomb/.">
                    <i class="iconfont icon-home" aria-hidden="true"></i>
                    <span class="menu-title">首页</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-archives" role="menuitem">
                <a href="/zzbomb/archives">
                    <i class="iconfont icon-archive" aria-hidden="true"></i>
                    <span class="menu-title">归档</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-categories" role="menuitem">
                <a href="/zzbomb/categories">
                    <i class="iconfont icon-folder" aria-hidden="true"></i>
                    <span class="menu-title">分类</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-tags" role="menuitem">
                <a href="/zzbomb/tags">
                    <i class="iconfont icon-tag" aria-hidden="true"></i>
                    <span class="menu-title">标签</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-repository" role="menuitem">
                <a href="/zzbomb/repository">
                    <i class="iconfont icon-project" aria-hidden="true"></i>
                    <span class="menu-title">项目</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-links" role="menuitem">
                <a href="/zzbomb/links">
                    <i class="iconfont icon-friend" aria-hidden="true"></i>
                    <span class="menu-title">友链</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-about" role="menuitem">
                <a href="/zzbomb/about">
                    <i class="iconfont icon-cup" aria-hidden="true"></i>
                    <span class="menu-title">关于</span>
                </a>
            </div>
        
        
<div class="social-links flex sm:flex-col lg:hidden mt-5">
    
        <span class="social-item text-center">
            <a href="https://gitee.com/123zhangzhenbin" target="_blank" rel="noopener">
                <i class="iconfont social-icon icon-github"></i>
                <span class="menu-title hidden lg:inline">menu.github</span>
            </a>
        </span>
    
</div>


    </nav>
</header>

        <section class="main-section">
            
    <main class="flex-1 px-4 py-12 md:px-5 lg:px-8 lg:py-4 relative min-h-screen">
    

    <article class="content article article-archives article-type-list" itemscope="">
        <header class="article-header">
            
    
        <h1 class="article-title text-lg" itemprop="name">
            通过Gitee部署hexo博客
        </h1>
    



            <p class="article-meta mb-3 text-xs">
                <span class="article-date">
    <i class="iconfont icon-calendar-check"></i>
	<a href="/zzbomb/2020/07/30/202007301638-hello-world/" class="article-date">
	  <time datetime="2020-07-30T08:39:05.000Z" itemprop="datePublished">7月 30</time>
	</a>
</span>

                

                
    <span class="article-tags">
    <i class="iconfont icon-tag"></i>
    <a class="article-tag-link" href="/zzbomb/tags/hexo/" rel="tag">hexo</a>
  </span>


                <span class="_partial/post-comment"><i class="icon icon-comment"></i>
                    <a href="/zzbomb/2020/07/30/202007301638-hello-world/#comments" class="article-comment-link">
                        评论
                    </a>
                </span>
                

            </p>
        </header>
        <div class="marked-body article-body">
            <ul>
<li><a href="#hexo%E9%83%A8%E7%BD%B2">hexo部署</a><ul>
<li><a href="#nodejs%E5%AE%89%E8%A3%85">nodejs安装</a></li>
<li><a href="#cnpm%E5%AE%89%E8%A3%85">cnpm安装</a></li>
<li><a href="#%E5%AE%89%E8%A3%85hexo">安装hexo</a></li>
<li><a href="#%E5%AE%89%E8%A3%85%E4%B8%BB%E9%A2%98">安装主题</a></li>
<li><a href="#%E7%BC%96%E5%86%99%E5%8D%9A%E5%AE%A2">编写博客</a></li>
<li><a href="#%E9%80%9A%E8%BF%87gitee%E5%8F%91%E5%B8%83%E5%8D%9A%E5%AE%A2">通过gitee发布博客</a></li>
</ul>
</li>
<li><a href="#hexo%E4%BD%BF%E7%94%A8%E7%9A%84">hexo使用的</a></li>
</ul>
<p>这是我的第一篇博客，目的是记录一下hexo的部署及使用方式。</p>
<h2 id="hexo部署"><a href="#hexo部署" class="headerlink" title="hexo部署"></a>hexo部署</h2><h3 id="nodejs安装"><a href="#nodejs安装" class="headerlink" title="nodejs安装"></a>nodejs安装</h3><p><a href="http://nodejs.cn/download/" target="_blank" rel="noopener">nodejs下载页面</a></p>
<p>win，通过安装程序点下一步安装</p>
<p>linux/MaxOS 下载对应的 tar.gz包</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> 下载目录<br><span class="hljs-comment"># 解压目录</span><br>tar -zxvf node-[version]-[os]-x64.tar.xz<br><span class="hljs-comment"># 移到opt下</span><br>sudo mv ./node-[version]-[os]-x64 /opt<br><span class="hljs-comment"># 编辑环境变量</span><br>sudo vi /etc/profile<br><br><span class="hljs-comment"># 文件末尾追加</span><br><span class="hljs-built_in">export</span> NODE_HOME=<span class="hljs-string">"/opt/node-v11.15.0-linux-x64"</span><br><span class="hljs-built_in">export</span> PATH=<span class="hljs-variable">$PATH</span>:<span class="hljs-variable">$NODE_HOME</span>/bin<br><br><span class="hljs-comment"># 保存</span><br>[esc]<br>:x!<br><br><span class="hljs-comment"># 环境变量生效</span><br><span class="hljs-built_in">source</span> /etc/profile<br></code></pre></td></tr></table></figure>

<h3 id="cnpm安装"><a href="#cnpm安装" class="headerlink" title="cnpm安装"></a>cnpm安装</h3><p>直接安装</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install -g cnpm --registry=https://registry.npm.taobao.org<br></code></pre></td></tr></table></figure>
<p>或通过别名方式</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">alias</span> cnpm=<span class="hljs-string">"npm --registry=https://registry.npm.taobao.org \</span><br><span class="hljs-string">--cache=<span class="hljs-variable">$HOME</span>/.npm/.cache/cnpm \</span><br><span class="hljs-string">--disturl=https://npm.taobao.org/dist \</span><br><span class="hljs-string">--userconfig=<span class="hljs-variable">$HOME</span>/.cnpmrc"</span><br><br><span class="hljs-comment"># Or alias it in .bashrc or .zshrc</span><br>$ <span class="hljs-built_in">echo</span> <span class="hljs-string">'\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \</span><br><span class="hljs-string">  --cache=$HOME/.npm/.cache/cnpm \</span><br><span class="hljs-string">  --disturl=https://npm.taobao.org/dist \</span><br><span class="hljs-string">  --userconfig=$HOME/.cnpmrc"'</span> &gt;&gt; ~/.zshrc &amp;&amp; <span class="hljs-built_in">source</span> ~/.zshrc<br></code></pre></td></tr></table></figure>

<p>我通过直接安装方式</p>
<h3 id="安装hexo"><a href="#安装hexo" class="headerlink" title="安装hexo"></a>安装hexo</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 安装</span><br>cnpm install -g hexo-cli<br><br><span class="hljs-comment"># 初始化页面</span><br>hexo init myblog<br></code></pre></td></tr></table></figure>

<p>如果初始化页面太慢了，可以通过修改git镜像地址来加速，这样一来会快很多</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash">vi /opt/node-[version]-[os]-x64/lib/node_modules/hexo/node_modules/_hexo-cli@[hexoversion]@hexo-cli/lib/console/init.js<br><br><span class="hljs-comment"># 替换地址</span><br><br>//const GIT_REPO_URL = <span class="hljs-string">'https://github.com/hexojs/hexo-starter.git'</span>;<br>const GIT_REPO_URL = <span class="hljs-string">'https://gitee.com/Perlistan/hexo-starter.git'</span><br></code></pre></td></tr></table></figure>

<p>为了方便图片的展示，需要安装图片插件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash">cnpm install hexo-asset-image --save<br><br><span class="hljs-comment"># 修改_config.yml配置</span><br>vi _config.yml<br><br>post_asset_folder: <span class="hljs-literal">true</span><br></code></pre></td></tr></table></figure>
<p>由于这个图片插件显示目录层级的是时候，会多一层，所以这里需要调整下。<br>修改node_modules/hexo-asset-image/index.js<br>位置大概在59和60行，不同版本的可能有点不一样</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-comment">// 原来</span><br><br>...<br>            $(<span class="hljs-keyword">this</span>).attr(<span class="hljs-string">'src'</span>, config.root + link + src);<br>            <span class="hljs-built_in">console</span>.info&amp;&amp;<span class="hljs-built_in">console</span>.info(<span class="hljs-string">"update link as:--&gt;"</span> + config.root +link + src);<br>...<br><br><span class="hljs-comment">// 修改后</span><br>...<br>            $(<span class="hljs-keyword">this</span>).attr(<span class="hljs-string">'src'</span>, <span class="hljs-string">'/'</span>+ link + src);<br>            <span class="hljs-built_in">console</span>.info&amp;&amp;<span class="hljs-built_in">console</span>.info(<span class="hljs-string">"update link as:--&gt;"</span>+<span class="hljs-string">'/'</span>+link + src);<br>...<br></code></pre></td></tr></table></figure>

<h3 id="安装主题"><a href="#安装主题" class="headerlink" title="安装主题"></a>安装主题</h3><p>这里安装的是casper主题，其他主题可以去网站找 <a href="https://hexo.io/themes/" target="_blank" rel="noopener">https://hexo.io/themes/</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 切换到博客目录下</span><br><span class="hljs-built_in">cd</span> myblog<br><br>git <span class="hljs-built_in">clone</span> https://gitee.com/h4lo1/hexo-theme-casper.git themes/casper<br><br><span class="hljs-comment"># 修改_config.yml配置</span><br>vi _config.yml<br><br>theme: casper<br></code></pre></td></tr></table></figure>

<h3 id="编写博客"><a href="#编写博客" class="headerlink" title="编写博客"></a>编写博客</h3><p>新建博客</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo new blogname<br></code></pre></td></tr></table></figure>
<p>执行完之后，会在source/_posts/文件架下出现一个blogname.md的文件，这个就是博客文件<br>同时会有一个source/_posts/blogname文件架，用于存储图片等附件信息。<br>如果想插入图片，可参照下图<br><img src="/zzbomb/2020/07/30/202007301638-hello-world/s_4.png" alt="git"></p>
<p>此时通过vscode编写时，也可以在预览界面中展示出来</p>
<p><img src="/zzbomb/2020/07/30/202007301638-hello-world/s_5.png" alt="git"></p>
<h3 id="通过gitee发布博客"><a href="#通过gitee发布博客" class="headerlink" title="通过gitee发布博客"></a>通过gitee发布博客</h3><p>创建gitee仓库<br>然后修改_config.yml上传配置</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">deploy:<br>  <span class="hljs-built_in">type</span>: git<br>  repo: [仓库地址]<br>  branch: master<br></code></pre></td></tr></table></figure>

<p>配置免密码公钥</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> ~<br>ssh-keygen -C <span class="hljs-string">"xxxxxx@xxxx.com"</span> <span class="hljs-comment"># 帐号</span><br></code></pre></td></tr></table></figure>

<p>访问gitee.com官网，添加SSH公钥</p>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs elixir">设置 -&gt; 安全设置 -&gt; SSH公钥<br>cat ~<span class="hljs-regexp">/.ssh/id</span>_rsa.pub   <span class="hljs-comment"># 添加如下内容</span><br></code></pre></td></tr></table></figure>

<p>验证是否成功</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh -T git@gitee.com<br>Hi xxxxxx! You<span class="hljs-string">'ve successfully authenticated, but GITEE.COM does not provide shell access.</span><br></code></pre></td></tr></table></figure>

<p>发布博客</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> 博客目录<br>hexo clean &amp;&amp; hexo generate &amp;&amp; hexo deploy<br></code></pre></td></tr></table></figure>

<p>配置webPages<br><img src="/zzbomb/2020/07/30/202007301638-hello-world/s_6.png" alt="webpage"><br>选择gitee pages<br><img src="/zzbomb/2020/07/30/202007301638-hello-world/s_7.png" alt="webpage"><br>点击更新</p>
<p>个人博客效果参考：<a href="https://123zhangzhenbin.gitee.io/zzbomb/">https://123zhangzhenbin.gitee.io/zzbomb/</a></p>
<h2 id="hexo使用"><a href="#hexo使用" class="headerlink" title="hexo使用"></a>hexo使用</h2><figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><code class="hljs"><span class="hljs-attribute">Usage</span>: hexo &lt;command&gt;<br><br><span class="hljs-attribute">Commands:</span><br>  clean     Remove generated files and cache. 清除生成文件和缓存<br>  config    Get or set configurations. 配置设置<br>  deploy    Deploy your website. 发布到站点<br>  generate  Generate static files. 生成静态文件<br>  help      Get help on a command. 帮助<br>  init      Create a new Hexo folder. 初始化博客<br>  list      List the information of the site 列表信息<br>  migrate   Migrate your site from other system to Hexo. 从其他网站系统迁移到hexo，没试过<br>  new       Create a new post. 新建一篇博客<br>  publish   Moves a draft post from _drafts to _posts folder. 将_drafts文件内容发布到_posts文件家中<br>  render    Render files with renderer plugins. 使用渲染插件渲染文件，没试过<br>  server    Start the server. 构建一个本地服务器，用来测试当前博客<br>  version   Display version information. 显示当前版本信息<br><br>Global Options:<br>  --config  Specify config file instead of using _config.yml 通过指定配置文件来替换默认的_config.yml文件<br>  --cwd     Specify the CWD 制定当前工作目录<br>  --debug   Display all verbose messages in the terminal 显示debug日志信息<br>  --draft   Display draft posts 显示draft里面的博客<br>  --safe    Disable all plugins and scripts 禁用所有的插件和脚本<br>  --silent  Hide output on console 隐藏日志输出<br><br>For more help, you can use 'hexo help [command]' for the detailed information<br>or you can check the docs: http://hexo.io/docs/<br></code></pre></td></tr></table></figure>

        </div>
        
<blockquote class="copyright">
    <p><strong>本文链接 : </strong><a class="permalink" href="https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/">https://123zhangzhenbin.gitee.io/zzbomb/2020/07/30/202007301638-hello-world/</a></p>
    <p><strong>This article is available under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="noopener noreferrer">Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)</a> License</strong></p>
</blockquote>


    </article>
    
    <section id="comments">
        
    </section>


    

</main>


<aside style="" id="sidebar" class="aside aside-fixture">
    <div class="toc-sidebar">
        <nav id="toc" class="article-toc">
            <h3 class="toc-title">文章目录</h3>
            <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#hexo部署"><span class="toc-number">1.</span> <span class="toc-text">hexo部署</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#nodejs安装"><span class="toc-number">1.1.</span> <span class="toc-text">nodejs安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#cnpm安装"><span class="toc-number">1.2.</span> <span class="toc-text">cnpm安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装hexo"><span class="toc-number">1.3.</span> <span class="toc-text">安装hexo</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装主题"><span class="toc-number">1.4.</span> <span class="toc-text">安装主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#编写博客"><span class="toc-number">1.5.</span> <span class="toc-text">编写博客</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#通过gitee发布博客"><span class="toc-number">1.6.</span> <span class="toc-text">通过gitee发布博客</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#hexo使用"><span class="toc-number">2.</span> <span class="toc-text">hexo使用</span></a></li></ol>
        </nav>
    </div>
</aside>





        </section>
        <footer class="hidden lg:block fixed bottom-0 left-0 sm:w-1/12 lg:w-1/6 bg-gray-100 z-40">
    
    <div class="footer-social-links">
        
            <a href="https://gitee.com/123zhangzhenbin" target="_blank" rel="noopener">
                <i class="iconfont icon-github"></i>
            </a>
        
    </div>
    
    <p style="display: block;text-align: center;font-size: 13px;"><a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16013026号</a></p>
    
        <p class="footer-custom"><a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16013026号</a></p>
        <p class="theme-brand">Theme by <a href="https://github.com/fengkx/hexo-theme-purer" target="_blank" rel="nofollow noopener noreferrer noopener">hexo-theme-purer</a></p>

    
</footer>

        <div id="mask" class="hidden mask fixed inset-0 bg-gray-900 opacity-75 z-40"></div>
        <div id="search-view-container" class="hidden shadow-xl"></div>
        
<script src="/zzbomb/js/dom-event.min.js"></script>

<script src="//cdn.jsdelivr.net/npm/yox@1.0.0-alpha.121/dist/standard/prod/yox.min.js"></script>


<script src="/zzbomb/js/search.min.js"></script>



    <script src="//cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/js/lightgallery.min.js"></script>
    
<script src="/zzbomb/js/light-gallery.min.js"></script>





    </body>
</html>
